<!DOCTYPE HTML>

<html lang="pt-br" 
	xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:p="http://primefaces.org/ui">

<h:head>
	<meta charset="UTF-8"/>
	<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
	<meta name="description" content=""/>
	<meta name="author" content=""/>
	
<link href="#{facesContext.externalContext.request.contextPath}/view/resources/bootstrap/css/bootstrap.css" rel="stylesheet" media="screen"/>
<link href="#{facesContext.externalContext.request.contextPath}/view/resources/bootstrap/css/bootstrap.min.css" rel="stylesheet" media="screen"/>
<link href="#{facesContext.externalContext.request.contextPath}/view/resources/bootstrap/css/bootstrap-select.css" rel="stylesheet" media="screen"/>
<link href="#{facesContext.externalContext.request.contextPath}/view/resources/bootstrap/css/bootstrap-responsive.css" rel="stylesheet" media="screen"/>
<link href="#{facesContext.externalContext.request.contextPath}/view/resources/bootstrap/css/bootstrap-responsive.min.css" rel="stylesheet" media="screen"/>	

<title>Dallas - Moto Peças</title>

<link rel="icon" type="image/png" href="#{facesContext.externalContext.request.contextPath}/view/resources/imagem/png/glyphicons_043_group.png"/>

<style type="text/css">
body 
{
	padding-top: 40px;
	padding-bottom: 10px;
	background-image: url("#{facesContext.externalContext.request.contextPath}/view/resources/imagem/fundo-negro.jpg");
}
</style>
<script type="text/javascript">     
	PrimeFaces.locales['pt'] = {  
		closeText: 'Fechar',  
		prevText: 'Anterior',  
		nextText: 'Próximo',  
		currentText: 'Começo',  
		monthNames: ['Janeiro','Fevereiro','Março','Abril','Maio','Junho','Julho','Agosto','Setembro','Outubro','Novembro','Dezembro'],  
		monthNamesShort: ['Jan','Fev','Mar','Abr','Mai','Jun', 'Jul','Ago','Set','Out','Nov','Dez'],  
		dayNames: ['Domingo','Segunda','Terça','Quarta','Quinta','Sexta','Sábado'],  
		dayNamesShort: ['Dom','Seg','Ter','Qua','Qui','Sex','Sáb'],  
		dayNamesMin: ['D','S','T','Q','Q','S','S'],  
		weekHeader: 'Semana',  
		firstDay: 0,  
		isRTL: false,  
		showMonthAfterYear: false,  
		yearSuffix: '',  
		timeOnlyTitle: 'Só Horas',  
		timeText: 'Tempo',  
		hourText: 'Hora',  
		minuteText: 'Minuto',  
		secondText: 'Segundo',  
		ampm: false,  
		month: 'Mês',  
		week: 'Semana',  
		day: 'Dia',  
		allDayText : 'Todo o Dia'  
	};
	 var chartStyle = {  
             padding:20,  
             legend: {  
                 display:"right",  
                 spacing:10  
             }  
         };  
</script>
</h:head>
<h:body>
<p:ajaxStatus onstart="PF('statusDialog').show();" 
						onsuccess="PF('statusDialog').hide();"/>
			<p:dialog modal="true" 
					widgetVar="statusDialog" 
					header="Aguarde"
					resizable="false"   
        			draggable="false" 
        			closable="false">  
    			<p:graphicImage value="/view/resources/imagem/gif-load.gif" />  
			</p:dialog>  
<h:form id="formPrincipal">
<p:growl id="mensagem" showDetail="true" sticky="true" autoUpdate="true"/>
<div class="navbar navbar-fixed-top">
	<div class="container">
		<p:menubar  id="menuBarPrincipal">
			
			<p:submenu label="Cadastro">
				<p:submenu label="Usuário">
						<p:menuitem value="Incluir" 
									actionListener="#{menuManagerBean.requisicaoMenu(2)}"
									update="mensagem"/>
						<p:menuitem value="Alterar" 
									actionListener="#{menuManagerBean.requisicaoMenu(3)}" 
									update="mensagem"/>
				</p:submenu>
				<p:submenu label="Parametro">
						<p:menuitem value="Alterar" 
									actionListener="#{menuManagerBean.requisicaoMenu(4)}" 
									update="mensagem"/>
				</p:submenu>			
			</p:submenu>
			<f:facet name="options">
				Bem Vindo: <strong><h:outputText value="#{usuarioLogado.nome}" style="padding-right:10px;"/></strong>
            	<p:commandButton value="Sair Sistema"
            					actionListener="#{menuManagerBean.requisicaoMenu(22)}"/>  
        	</f:facet>
			  
		</p:menubar>
	</div>
</div>
</h:form>

<div id="corpo" align="center">
		<ui:insert name="corpo"/>
</div>
</h:body>
</html>